package com.atguigu.gmall.order.client.impl;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.order.OrderInfo;
import com.atguigu.gmall.order.client.OrderFeifnClient;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * ClassName: OrderDegradeFeignClient
 * Package: com.atguigu.gmall.order.client.impl
 * Description:
 *
 * @Author 刘轩
 * @Create 2023-09-02 10:17
 * @Version 1.0
 */

@Component
public class OrderDegradeFeignClient  implements OrderFeifnClient {

    @Override
    public Result authTrade() {
        System.out.println(" 111111111");
        return Result.fail().message("熔断了");
    }

    @Override
    public OrderInfo getOrderInfo(Long orderId) {
        return null;
    }
}
